# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023-06-05
desc: 
sample: 
"""
counter = 0
while counter < 3:
    name = input("请输入用户名。。。")
    password = input("请输入密码。。。")
    if name == "root" and password == 'root':
        print("登录成功")
        break
    else:
        counter = counter + 1
        print(f"你还剩余{3 - counter}次机会")
